Setting default theme for  wallpaper

I have a script to set the theme in windows 7 deployment "The added theme is baked into the deployed image" but I am having some issues. When the system is joined to a workgroup the theme is present but as soon as the system is domain joined it does not apply.

REM **********************************
REM  Load Default User registry hive
REM **********************************
reg load HKU\DefaultUser "C:\Users\Default\ntuser.dat"

REM *****************************************************
REM Set default theme
REM *****************************************************
reg add "HKU\DefaultUser\Software\Policies\Microsoft\Windows\Personalization" /v Themefile /d "%systemroot%\Resources\Themes\Win7Profile.theme" /t REG_SZ /f

REM ***********************************
REM  Unload Default User registry hive
REM ***********************************
reg unload HKU\DefaultUser

The theme ends up here when in a workgroup: [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Personalization]
"Themefile"="C:\\WINDOWS\\Resources\\Themes\\Win7Profile.theme"

When on the domain and I manualy envoke the theme it ends up here:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes]
"CurrentTheme"="C:\\WINDOWS\\resources\\Themes\\Win7Profile.theme"

December 3rd, 2013 10:43am

Hi,

From your description, I think it isnt a SCCM issue. Please contact Script Center to get professional support.

http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG

Free Windows Admin Tool Kit Click here and download it now
December 4th, 2013 3:50am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics